<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        div:not(#box){
            padding: 50px;
        }
        .box1{
            background-color: red;
        }
        .box2{
            background-color: saddlebrown;
        }
        .box3{
            background-color: springgreen;
        }

    </style>
</head>
<div id="box">
   <div class="box1" @click='fn1(1)'>
       <div class="box2"  @click='fn2(2,$event)'>
           <div class="box3"  @click='fn3(3,$event)'></div>
       </div>
   </div>
</div>

<body>

    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.13/dist/vue.js"></script>
    <script>
        var vm = new Vue({
            el: "#box",
            methods: {
               fn1(n){
                   alert(n)
               },
               fn2(n,e){
                   alert(n)
                   e.stopPropagation()
               },
               fn3(n,e){
                   alert(n)
                   e.stopPropagation()
               }
                

            }

        })


    </script>
</body>

</html>